package com.cisc.business.product.dao;

import com.cisc.business.product.dto.ProductInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @description: XXX
 * @author: daizh
 * @time: 2021/6/20 13:33
 */
@Mapper
public interface ProductMapper {
    /**
     * @param productId
     * @return
     */
    ProductInfo getProductByProductId(Integer productId);

    /**
     * @param productCode
     * @return
     */
    ProductInfo getProductByProductCode(String productCode);

    /**
     * @return
     */
    List<ProductInfo> getAllProducts();

    /**
     * @param productInfo
     */
    void saveProduct(ProductInfo productInfo);
}
